package com.example.multidatasource.dao;

import com.example.multidatasource.domain.Book;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface BookDao extends JpaRepository<Book,String> {
    @Query("SELECT o FROM Book o")
    List<Book> findAllByPrimary();
    @Query("SELECT o FROM Book o")
    List<Book> findAllBySecondry();
    @Query("SELECT o FROM Book o")
    List<Book> findAllByThirdry();
}
